package com.cn.data.ioc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Author: chenl
 * @Date: 2019/11/9 12:15
 */
@Component
@DependsOn
public class IndexService {

    @PostConstruct
    public void init(){
        System.out.println("开始实例化index service");
    }


    @Bean
    public void consol(){

        System.out.println("处理逻辑===");
    }



}
